class BookListModel {
  late String bookListId;
  String? title;
  String? subTitle;
  String? bookListImgUrl;
  int? num;

  BookListModel(this.bookListId,
      {this.title,
      this.subTitle,
      this.bookListImgUrl,
      this.num = 0,});

  BookListModel.fromJson(Map<String, dynamic> json) {
    bookListId = json['bookListId'];
    title = json['title'];
    subTitle = json['subTitle'];
    bookListImgUrl = json['bookListImgUrl'];
    num = json['num'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['bookListId'] = this.bookListId;
    data['title'] = this.title;
    data['subTitle'] = this.subTitle;
    data['bookListImgUrl'] = this.bookListImgUrl;
    data['num'] = this.num;
    return data;
  }
}
